package com.yunding.constants;


/**
 * <p>
 * 存放系统常量
 * </p>
 *
 * @author 郭思良
 * @create 2020-07-23 15:38
 */
public class SystemConstants {

	/**
	 * MD5加密前缀
	 */
	public static final String PASSWORD_PRE = "YUNZHENG";

	/**
	 * token字段名
	 */
	public static final String TOKEN = "access-token";

	/**
	 * projectId字段名
	 */
	public static final String PROJECT_ID = "project";

	/**
	 * 注册验证码失效秒数，为1200秒，即20分钟
	 */
	public static final long VERIFY_CODE_INVALID_SECONDS = 1200;

	/**
	 * 盐的位数
	 */
	public static final int SALT = 8;

	/**
	 * 加密次数
	 */
	public static final int HASH_ITERATION = 1024;

	/**
	 * 手机号正则表达式
	 */
	public static final String PHONE_REGEX = "^1[0-9]{10}$";

}
